﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using System.Data.Entity;

namespace MvcApplication2.Models
{

    public class Register : User
    {
        [Required(ErrorMessage = "Musisz potwierdzić hasło")]
        [Display(Name = "Potwierdzenie hasła")]
        [DataType(DataType.Password)]
        [Compare("Password", ErrorMessage = "Podane hasła nie pasują do siebie")]
        public string Password2 { get; set; }
    }

    public class LogOnModel
    {
        [Required(ErrorMessage = "Musisz podać login")]
        [Display(Name = "Login")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "Musisz podać hasło")]
        [DataType(DataType.Password)]
        [Display(Name = "Hasło")]
        public string Password { get; set; }
    }
}
